//
//  ViewController.h
//  PullRefresh
//
//  Created by Sunny Purewal on 11-10-30.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol RefreshDelegate <NSObject>

-(id)refresh;

@end

UILabel* lblRefresh;
UIActivityIndicatorView* spinner;
UIImageView* imgArrow;

NSString* refreshText;
NSString* releaseText;
NSString* refreshingText;
id<RefreshDelegate> delegate;

@interface TableViewController : UITableViewController


@property (nonatomic, copy) NSString* refreshText;
@property (nonatomic, copy) NSString* releaseText;
@property (nonatomic, copy) NSString* refreshingText;

@property (nonatomic, assign) id<RefreshDelegate> delegate;

-(void)addPullToRefreshHeader;
-(void)refresh;
-(void)doneRefreshing;

//customization
-(void)setFont:(UIFont*)font;
-(void)setImage:(UIImage*)image;

@end
